package com.tanhua;

import com.tanhua.sso.config.CorsConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.filter.CorsFilter;

/**
 * @author 阿离(灰原)
 * @version 1.0
 * @date 2023/8/27 下午 10:21
 */
@SpringBootApplication
@MapperScan("com.tanhua.sso.mapper")
public class MyApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class, args);
    }

    @Bean
    public CorsFilter corsFilter() {
        return new CorsConfig().corsFilter();
    }
}
